package com.test.exception;

import com.test.enums.ResultEnum;
/**
 * 自定义的carException
 * @author dinghao
 *
 */
public class CarException extends RuntimeException{

	private static final long serialVersionUID = 1L;

	private String code;

	public CarException() {
		super();
	}

	public CarException(ResultEnum resultEnum) {
		super(resultEnum.getMessage());
		this.code = resultEnum.getCode();
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
}
